import mitt from 'mitt'
import type { BusEvent } from '@/libs/EventBus/types'

/* 全局通用的Bus */
export const EventBus = mitt<BusEvent>()

export default EventBus
